//存储当前页面数据参数
let addCurrentPageParams = (current,currentItem) =>{
    let {name,params} = current;
    let backParams = {};
    backParams['name'] = name;
    backParams['params'] = params;
    localStorage.setItem('currentItem',currentItem);
    localStorage.setItem('urlParams',JSON.stringify(backParams));
}

//携带参数返回
let return_history = () =>{
    let urlParams = JSON.parse(localStorage.getItem('urlParams'));
    return urlParams
}
export default {
    addCurrentPageParams,
    return_history
}

